﻿using System;
using System.Text;

namespace RadioPlaylisterDomain
{
    public class Track
    {
      #region Fields (12) 

        String artist;
        String location;
        String title;
        String track;
        String trackCount;
        String year;
        String firstGenre;
        String disc;
            String discCount;
            String beatsPerMinute;
            String album;
       // String[] genres;

      #endregion Fields 

      #region Properties (12) 

            public String Album
            {
                get { return album; }
                set { album = value; }
            }

        public String Artist
        {
            get { return artist; }
            set { artist = value; }
        }

            public String BeatsPerMinute
            {
                get { return beatsPerMinute; }
                set { beatsPerMinute = value; }
            }

        public String Disc
        {
            get { return disc; }
            set { disc = value; }
        }

            public String DiscCount
            {
                get { return discCount; }
                set { discCount = value; }
            }

        public String FirstGenre
        {
            get { return firstGenre; }
            set { firstGenre = value; }
        }

 /*       public String[] Genres
        {
            get { return genres; }
            set { genres = value; }
        }
*/
        public String Location
        {
            get { return location; }
            set { location = value; }
        }

        public String Title
        {
            get { return title; }
            set { title = value; }
        }

        public String TrackCount
        {
            get { return trackCount; }
            set { trackCount = value; }
        }

        public String TrackNumber
        {
            get { return track; }
            set { track = value; }
        }

        public String Year
        {
            get { return year; }
            set { year = value; }
        }

      #endregion Properties 

      #region Methods (1) 

      #region Public Methods (1) 

        public String ToString()
        {
            StringBuilder bob = new StringBuilder();
            foreach (System.Reflection.PropertyInfo pi in this.GetType().GetProperties())
            {
                    bob.AppendFormat("{0}: '{1}';  ", pi.Name, pi.GetValue(this));
            }
            
            return bob.ToString();
        }

      #endregion Public Methods 

      #endregion Methods 
    }
}
